
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type StoreServiceFeedbackRequest struct {

	Uid string `json:"uid" form:"uid"`

	RelaName string `json:"rela_name" form:"rela_name"`

	Phone string `json:"phone" form:"phone"`

	Content string `json:"content" form:"content"`

	Make string `json:"make" form:"make"`

	Status string `json:"status" form:"status"`

	AddTime string `json:"add_time" form:"add_time"`

}

func (r *StoreServiceFeedbackRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *StoreServiceFeedbackRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"uid": "required",

		"rela_name": "required",

		"phone": "required",

		"content": "required",

		"make": "required",

		"status": "required",

		"add_time": "required",

	}
}

func (r *StoreServiceFeedbackRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *StoreServiceFeedbackRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *StoreServiceFeedbackRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
